<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>职位列表的显示页面</title>
           <script type="text/javascript">
         /*   function toadd() {
	       document.forms[0].action="/bsc/bis_shop_post/toadd";
	       document.forms[0].submit();
           } */
           </script>
        
	<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="../static/common/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="../static/common/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="../static/common/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="../static/css/personal.css" media="all">
	<style type="text/css">
		.c1{
			width: 137px;
			text-align: center;
		}
		.w1{
			margin-top: 10px;
		}
		.s1{
			margin-left: 1cm;
		}
	</style>
</head>

<body>
<section class="layui-larry-box">
			<div class="larry-personal">
				<div class="layui-tab">
			    <form method="post" action="/bsc/bis_shop_post/list">
						 <div class="layui-inline">
							<div class="layui-input-inline">
							职位编码:<input type="text" name="qpost_code" placeholder="" class="c1">
				                              职位名称:<input type="text" name="qpost_name" placeholder="" class="c1">             
				                    
								<!-- <input value="" placeholder="请输入关键字" class="layui-input search_input" type="text"> -->
							</div>
							 <input type="submit" value="查询" class="layui-btn layui-btn-normal">
				             <button type="reset" value="" class="layui-btn layui-btn-normal">重置</button>
						</div> 
						
						<div class="layui-inline">
							<a class="layui-btn layui-btn-normal newsAdd_btn">新增</a>
						</div>
						<!-- <div class="layui-inline">
							<a class="layui-btn recommend" style="background-color:#5FB878">推荐文章</a>
						</div>
						<div class="layui-inline">
							<a class="layui-btn audit_btn">审核文章</a>
						</div> -->
						<div class="layui-inline">
						</div>
						
   

					<!-- 操作日志 -->
						<table class="layui-table">
							<colgroup>
							    <col width="5%">
								<col width="15%">
								<col width="15%">
								<col width="20%">
								<col width="25%">
								<col width="20%">
							</colgroup>
					<thead>
						<tr>
						    <th ></th>
							<th >职位编码</th>
							<th>职位名称</th>
							<th>备注</th>
							<th>更新时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody class="news_content">
					<c:forEach items="${listbis_shop_post }" var="bis_shop_post" varStatus="stat">
                         <tr>
                              <td class="td"  hidden>${bis_shop_post.post_id}</td> 
                              <td>${stat.index+1 }</td> 

                              <td>${bis_shop_post.post_code}</td> 

                              <td>${bis_shop_post.post_name }</td> 

                              <td>${bis_shop_post.post_desc }</td> 

                              <td>
                              <fmt:formatDate value="${bis_shop_post.modify_time }" pattern="yyyy-MM-dd"/>
                              </td> 
                              
                              <td>
                              <a href="#" class="up_btn" >修改</a>||
                              <a href="/bsc/bis_shop_post/delete/${bis_shop_post.post_id}"  >删除</a>
                              </td> 
                     </tr>
               </c:forEach>
					
					</tbody>
					</table>
		
       </form>		
                      <div class="larry-table-page clearfix">
				          <div id="page" class="page"></div>
			          </div>
		</div>
	 </div>       
</section>
<script type="text/javascript" src="../static/common/layui/layui.js"></script>
<!-- <script type="text/javascript" src="../static/js/newslist.js"></script> -->
<script type="text/javascript" src="../static/js/jquery.min.js"></script>

<script type="text/javascript">

	 layui.use(['jquery','layer','element','laypage'],function(){
	      window.jQuery = window.$ = layui.jquery;
	      window.layer = layui.layer;
          var element = layui.element(),
              laypage = layui.laypage;
          /* laypage({
					cont: 'page',
					pages: ${pbz.total} ,//总页数
					groups: 3 ,//连续显示分页数
					curr: ${pbz.current} ,
					jump: function(obj, first) {
						//得到了当前页，用于向服务端请求对应数据
						var curr = obj.curr;
						if(!first) {
							//layer.msg('第 '+ obj.curr +' 页');
							document.forms[0].action="/bsc/bis_shop_user/list?curr="+curr;
							document.forms[0].submit();
						}
					}
				});   */
         
          //添加文章
  		//改变窗口大小时，重置弹窗的高度，防止超出可视区域（如F12调出debug的操作）
  		$(window).one("resize",function(){
  			$(".newsAdd_btn").click(function(){
  				var index = layui.layer.open({
  					title : "新增职位",
  					type : 2,
  					content : "/bsc/bis_shop_post/toadd",
  					success : function(layero, index){
  						setTimeout(function(){
  							layui.layer.tips('点击此处返回文章列表', '.layui-layer-setwin .layui-layer-close', {
  								tips: 3
  							});
  						},500)
  					}
  				})			
  				layui.layer.full(index);
  			})
  			//  修改
  			$(".up_btn").click(function(){
  				var id=$(this).parents("tr").find(".td").text();
  				var index = layui.layer.open({
  					title : "修改信息",
  					type : 2,
  					content : "/bsc/bis_shop_post/toup?id="+id,
  					success : function(layero, index){
  						setTimeout(function(){
  							layui.layer.tips('点击此处返回文章列表', '.layui-layer-setwin .layui-layer-close', {
  								tips: 3
  							});
  						},500)
  					}
  				})			
  				layui.layer.full(index);
  			})
  			
  		/* 	// 删除
  			$(".del_btn").click(function(){
  				var id=$(this).parents("tr").find(".td").text();
  				var index = layui.layer.open({
  					title : "删除信息",
  					type : 2,
  					content : "/bsc/bis_shop_post/delete?post_id="+id,
  					success : function(layero, index){
  						setTimeout(function(){
  							layui.layer.tips('点击此处返回文章列表', '.layui-layer-setwin .layui-layer-close', {
  								tips: 3
  							});
  						},500)
  					}
  				})			
  				layui.layer.full(index);
  			}) */
  			
  		}).resize();
    });
</script>
</body>
</html>